.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
}

.header h1 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-color);
}

.headerControls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.configButton {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-color);
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.configButton:hover {
    background-color: var(--hover-color);
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    overflow: hidden;
}

.messageList {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding-right: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.messageList::-webkit-scrollbar {
    width: 6px;
}

.messageList::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 3px;
}

.messageList::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 3px;
}

/* Modal styles */
.modalOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal {
    background-color: var(--bg-color);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modalHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modalHeader h2 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-color);
}

.closeButton {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-color);
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.closeButton:hover {
    background-color: var(--hover-color);
}

.modalContent {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

/* Dark mode variables are handled by the data-theme attribute */
[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --header-bg: #2d2d2d;
    --border-color: #404040;
    --input-bg: #2d2d2d;
    --primary-color: #3b82f6;
    --primary-color-dark: #2563eb;
    --primary-color-alpha: rgba(59, 130, 246, 0.2);
    --hover-color: rgba(255, 255, 255, 0.1);
    --scrollbar-track: #2d2d2d;
    --scrollbar-thumb: #404040;
}

[data-theme="light"] {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --header-bg: #f8f8f8;
    --border-color: #e5e5e5;
    --input-bg: #f8f8f8;
    --primary-color: #3b82f6;
    --primary-color-dark: #2563eb;
    --primary-color-alpha: rgba(59, 130, 246, 0.2);
    --hover-color: rgba(0, 0, 0, 0.05);
    --scrollbar-track: #f1f1f1;
    --scrollbar-thumb: #c1c1c1;
}